import { ProForm, ProFormDigit, ProFormText } from "@ant-design/pro-components"
import ProFormDept from "./proFormDept";
const DeptForm = () => {
  return <>
    <ProForm.Group rowProps={{
      gutter: 20
    }}>

      <ProForm.Item name='id' hidden></ProForm.Item>
      <ProForm.Item name='version' hidden></ProForm.Item>
      <ProForm.Item name='treeSort' hidden></ProForm.Item>
      <ProForm.Item name='status' hidden></ProForm.Item>
      <ProForm.Item name='deptType' hidden></ProForm.Item>
      <ProFormDept
        colProps={{ lg: 12, md: 12, sm: 24 }}
        name="parentId"
        label="上级组织"
        placeholder="请输入上级组织"
        rules={[{ required: true, message: '请输入上级组织' }]}
        fieldProps={{ wantRoot: true }}
      />

      <ProFormText
        colProps={{ lg: 12, md: 12, sm: 24 }}
        name="deptName"
        label="组织名称"
        placeholder="请输入组织名称"
        rules={[{ required: true, message: '请输入组织名称' }]}
      />

      <ProFormDigit
        colProps={{ lg: 12, md: 12, sm: 24 }}
        name="personNum"
        label="组织人数"
        placeholder="请输入组织人数"
        min={0}
        fieldProps={{ precision: 0 }}
      />

    </ProForm.Group>
  </>
}



export default DeptForm